﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using Model;
using DAL;
namespace BLL
{
  public   class StateBLL
    {
      StateDAL dal = new StateDAL();
      /// <summary>
      /// 状态显示功能
      /// </summary>
      /// <returns></returns>
      public List<State> State_Show()
      {
          return dal.State_Show();

      }
      /// <summary>
      /// 状态的添加
      /// </summary>
      /// <param name="m"></param>
      /// <returns></returns>
      public int State_Insert(State s)
      {
          return dal.State_Insert(s);
      }
      /// <summary>
      /// 状态的删除
      /// </summary>
      /// <param name="id"></param>
      /// <returns></returns>
      public int State_Delete(int id)
      {
          return dal.State_Delete(id);
      }


      /// <summary>
      /// 状态的显示或修改第一步
      /// </summary>
      /// <param name="id"></param>
      /// <returns></returns>
      public State State_details(int id)
      {
          return dal.State_details(id);

      }
      /// <summary>
      /// 状态的修改
      /// </summary>
      /// <param name="id"></param>
      /// <returns></returns>
      public int State_Edit(State s)
      {
          return dal.State_Edit(s);
      }
      /// <summary>
      /// 状态的搜索
      /// </summary>
      /// <param name="RoleId"></param>
      /// <returns></returns>
      public List<State> State_Search(string StateName)
      {
          return dal.State_Search(StateName);

      }



    }
}
